import json
import requests
import random
def hitokoto():
    data={"type":random.choice(['a','b','c','d','e','f'])}
    result=requests.post('https://v1.alapi.cn/api/hitokoto',data=data)
    dict=json.loads(result.text)
    print(dict['data']['hitokoto'])
    print(dict['data']['from'])
hitokoto()
